<template>
    <tr>
      <td><input type="checkbox" :checked="myObj.checked"></td>
      <td>{{myObj.name}}</td>
      <td>{{myObj.price}}</td>
      <td><button @click="onSub">-</button>{{myObj.num}}<button>+</button></td>
      <td>123</td>
      <td><button>删除</button></td>
    </tr>
</template>

<script>
export default {
  data () {
    return {

    }
  },
  props: {
    myObj: {
      type: Object,
      required: true
    }
  },
  created () {

  },

  methods: {
    onSub () {

    }
  }
}
</script>

<style scoped lang='less'>

</style>
